package com.demo93_复原ip地址;

public class StringTest {
    public static void main(String[] args) {
        String s="355";
        int c1 = s.compareTo("2");
        int c2 = s.compareTo("3");
        int c3 = s.compareTo("4");
        int c4 = s.compareTo("255");
        int c5 = s.compareTo("356");
        int c6 = s.compareTo("355");

        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);
        System.out.println(c6);
    }
}
